package adfc2.core;

import adfc2.entities.Workshop;

/**
 * Все виды крафтинга
 */
public abstract class Reaction {
    public final Item[] input;
    public final Workshop workshop;

    public Reaction(Workshop workshop, Item... input) {
        this.workshop = workshop;
        this.input = input;
    }

    public abstract Item[] output();

    /**
     * Возможность проведения реакции (валидация input)
     */
    public abstract boolean valid();

    public abstract String shortName();
}
